import {request} from "./index";

export function addadmin(name,pwd) {
    return request({
        method: 'post',
        url: '/admin/add',
        params: {
            name:name,
            pwd:pwd,
        }
    })
}
export function updateadmin(id,name,pwd) {
    return request({
        method: 'post',
        url: '/admin/update',
        params: {
            id:id,
            name:name,
            pwd:pwd,
        }
    })
}

export function selectadmin(name) {
    return request({
        method: 'get',
        url: '/admin/query',
        params: {
            name:name,
        }
    })
}
